const router = require('koa-router')()
const {oauth, login, callback} = require('../controllers/github')


// GitHub授权登录
router.get('/', oauth)
router.get('/github/login', login)
router.get('/github/callback', callback)

module.exports = router
